package org.example;

public class Main {
    public static void main(String[] args) {
//        System.out.println("Hello world!");
        Soldier s1 = new Soldier( "廉颇",79);
        Soldier s2 = new Soldier( "盖伦",82);
        Soldier s3 = new Soldier( "锐雯",78);
        Magicer m1 = new Magicer("维嘉",5);
        Magicer m2 = new Magicer("法师",4);
        Magicer m3 = new Magicer("小鱼人",3);
        Magicer m4 = new Magicer("火男",2);


        Team team = new Team();team.addMember(s1);
        team.addMember(s2);
        team.addMember(s3);
        team.addMember(m1);
        team.addMember(m2);
        team.addMember(m3);
        team.addMember(m4);
        //打印当前队伍成员信息
        team.printRole();
        System.out.println(team.attackSum());

    }



}
